home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 …ember: Reference Library / Dev.CD Dec 00 RL Disk 1.toast / mac / Technical Documentation / Develop / develop Issue 18 / develop Issue 18 code / OSA Sample.sea / OSA Sample / Sources / AESubDescs.h < prev    next >
MacBinary  |  1992-09-17  |  2.6 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Sep 17 16:07:21 1992, modified Thu Sep 17 16:07:21 1992, creator Think C, type ASCII, 1943 bytes "AESubDescs.h" , at 0x817 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 41 45 53 75 62 44 | 65 73 63 73 2e 68 00 00 |..AESubD|escs.h..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 07 97 00 | 00 01 ac a6 de 95 f9 a6 |........|........|
|00000060| de 95 f9 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 9e 5c 00 00 |........|.....\..|
|00000080| 2f 2f 20 41 45 53 75 62 | 44 65 73 63 73 2e 68 0d |// AESub|Descs.h.|
|00000090| 2f 2f 0d 2f 2f 20 41 20 | 68 69 67 68 2d 65 66 66 |//.// A |high-eff|
|000000a0| 69 63 69 65 6e 63 79 20 | 77 61 79 20 74 6f 20 65 |iciency |way to e|
|000000b0| 78 61 6d 69 6e 65 20 41 | 45 44 65 73 63 73 2e 20 |xamine A|EDescs. |
|000000c0| 45 76 65 72 79 74 68 69 | 6e 67 20 69 73 20 64 6f |Everythi|ng is do|
|000000d0| 6e 65 20 69 6e 20 70 6c | 61 63 65 2c 20 77 69 74 |ne in pl|ace, wit|
|000000e0| 68 6f 75 74 20 61 6e 79 | 0d 2f 2f 20 63 6f 70 79 |hout any|.// copy|
|000000f0| 69 6e 67 20 6f 66 20 64 | 61 74 61 2c 20 77 68 69 |ing of d|ata, whi|
|00000100| 63 68 20 61 76 6f 69 64 | 73 20 6d 6f 73 74 20 6f |ch avoid|s most o|
|00000110| 66 20 74 68 65 20 6f 76 | 65 72 68 65 61 64 20 6f |f the ov|erhead o|
|00000120| 66 20 74 68 65 20 41 70 | 70 6c 65 20 45 76 65 6e |f the Ap|ple Even|
|00000130| 74 20 4d 61 6e 61 67 65 | 72 2e 0d 2f 2f 0d 2f 2f |t Manage|r..//.//|
|00000140| 20 42 79 20 4a 65 6e 73 | 20 41 6c 66 6b 65 3b 20 | By Jens| Alfke; |
|00000150| 43 6f 70 79 72 69 67 68 | 74 20 a9 31 39 39 32 20 |Copyrigh|t .1992 |
|00000160| 41 70 70 6c 65 20 43 6f | 6d 70 75 74 65 72 2e 20 |Apple Co|mputer. |
|00000170| 41 6c 6c 20 52 69 67 68 | 74 73 20 52 65 73 65 72 |All Righ|ts Reser|
|00000180| 76 65 64 2e 0d 0d 0d 23 | 69 66 64 65 66 20 54 48 |ved....#|ifdef TH|
|00000190| 49 4e 4b 5f 43 0d 23 70 | 72 61 67 6d 61 20 6f 6e |INK_C.#p|ragma on|
|000001a0| 63 65 09 09 09 09 09 09 | 09 09 09 09 2f 2a 20 46 |ce......|..../* F|
|000001b0| 6f 72 20 54 48 49 4e 4b | 20 43 20 75 73 65 72 73 |or THINK| C users|
|000001c0| 20 2a 2f 0d 23 65 6e 64 | 69 66 0d 0d 23 69 66 6e | */.#end|if..#ifn|
|000001d0| 64 65 66 20 5f 5f 41 45 | 53 55 42 44 45 53 43 53 |def __AE|SUBDESCS|
|000001e0| 5f 5f 0d 23 64 65 66 69 | 6e 65 20 5f 5f 41 45 53 |__.#defi|ne __AES|
|000001f0| 55 42 44 45 53 43 53 5f | 5f 09 09 09 09 09 09 09 |UBDESCS_|_.......|
|00000200| 09 2f 2a 20 46 6f 72 20 | 70 6f 6f 72 20 4d 50 57 |./* For |poor MPW|
|00000210| 20 75 73 65 72 73 20 3a | 29 20 2a 2f 0d 0d 23 69 | users :|) */..#i|
|00000220| 6e 63 6c 75 64 65 20 3c | 41 70 70 6c 65 45 76 65 |nclude <|AppleEve|
|00000230| 6e 74 73 2e 68 3e 0d 0d | 65 6e 75 6d 7b 09 09 09 |nts.h>..|enum{...|
|00000240| 09 09 09 09 09 09 09 09 | 09 2f 2f 20 45 72 72 6f |........|.// Erro|
|00000250| 72 20 63 6f 64 65 0d 09 | 65 72 72 41 45 4c 69 73 |r code..|errAELis|
|00000260| 74 49 73 46 61 63 74 6f | 72 65 64 09 09 3d 20 2d |tIsFacto|red..= -|
|00000270| 31 37 36 30 09 09 09 09 | 09 09 2f 2f 20 49 20 63 |1760....|..// I c|
|00000280| 61 6e 6e 6f 74 20 67 65 | 74 20 64 61 74 61 20 66 |annot ge|t data f|
|00000290| 72 6f 6d 20 66 61 63 74 | 6f 72 65 64 20 6c 69 73 |rom fact|ored lis|
|000002a0| 74 73 0d 7d 3b 0d 0d 0d | 74 79 70 65 64 65 66 20 |ts.};...|typedef |
|000002b0| 73 74 72 75 63 74 20 7b | 0d 09 44 65 73 63 54 79 |struct {|..DescTy|
|000002c0| 70 65 09 73 75 62 44 65 | 73 63 54 79 70 65 3b 09 |pe.subDe|scType;.|
|000002d0| 09 2f 2f 20 54 79 70 65 | 20 6f 66 20 74 68 69 73 |.// Type| of this|
|000002e0| 20 73 75 62 44 65 73 63 | 2e 20 59 6f 75 20 6d 61 | subDesc|. You ma|
|000002f0| 79 20 72 65 61 64 20 74 | 68 69 73 20 66 69 65 6c |y read t|his fiel|
|00000300| 64 2e 0d 09 48 61 6e 64 | 6c 65 09 09 64 61 74 61 |d...Hand|le..data|
|00000310| 48 61 6e 64 6c 65 3b 09 | 09 09 2f 2f 20 48 61 6e |Handle;.|..// Han|
|00000320| 64 6c 65 20 74 6f 20 6d | 61 69 6e 20 28 6f 75 74 |dle to m|ain (out|
|00000330| 65 72 29 20 64 65 73 63 | 72 69 70 74 6f 72 2e 20 |er) desc|riptor. |
|00000340| 50 72 69 76 61 74 65 2e | 0d 09 6c 6f 6e 67 09 09 |Private.|..long..|
|00000350| 6f 66 66 73 65 74 3b 09 | 09 09 09 2f 2f 20 4f 66 |offset;.|...// Of|
|00000360| 66 73 65 74 20 69 6e 74 | 6f 20 6d 61 69 6e 20 64 |fset int|o main d|
|00000370| 65 73 63 72 69 70 74 6f | 72 20 77 68 65 72 65 20 |escripto|r where |
|00000380| 73 75 62 44 65 73 63 20 | 73 74 61 72 74 73 2e 20 |subDesc |starts. |
|00000390| 50 72 69 76 61 74 65 2e | 0d 7d 20 41 45 53 75 62 |Private.|.} AESub|
|000003a0| 44 65 73 63 3b 0d 0d 0d | 70 61 73 63 61 6c 20 76 |Desc;...|pascal v|
|000003b0| 6f 69 64 0d 09 41 45 44 | 65 73 63 54 6f 53 75 62 |oid..AED|escToSub|
|000003c0| 44 65 73 63 28 20 63 6f | 6e 73 74 20 41 45 44 65 |Desc( co|nst AEDe|
|000003d0| 73 63 2a 2c 20 41 45 53 | 75 62 44 65 73 63 2a 20 |sc*, AES|ubDesc* |
|000003e0| 29 3b 09 09 09 09 09 2f | 2f 20 43 72 65 61 74 65 |);...../|/ Create|
|000003f0| 20 73 75 62 44 65 73 63 | 20 6f 6e 20 64 65 73 63 | subDesc| on desc|
|00000400| 0d 70 61 73 63 61 6c 20 | 4f 53 45 72 72 0d 09 41 |.pascal |OSErr..A|
|00000410| 45 53 75 62 44 65 73 63 | 54 6f 44 65 73 63 28 20 |ESubDesc|ToDesc( |
|00000420| 63 6f 6e 73 74 20 41 45 | 53 75 62 44 65 73 63 2a |const AE|SubDesc*|
|00000430| 2c 20 6c 6f 6e 67 20 64 | 65 73 69 72 65 64 54 79 |, long d|esiredTy|
|00000440| 70 65 2c 20 41 45 44 65 | 73 63 2a 20 29 3b 09 2f |pe, AEDe|sc* );./|
|00000450| 2f 20 43 6f 70 79 20 73 | 75 62 44 65 73 63 20 74 |/ Copy s|ubDesc t|
|00000460| 6f 20 6e 65 77 20 64 65 | 73 63 0d 0d 70 61 73 63 |o new de|sc..pasc|
|00000470| 61 6c 20 44 65 73 63 54 | 79 70 65 0d 09 41 45 47 |al DescT|ype..AEG|
|00000480| 65 74 53 75 62 44 65 73 | 63 54 79 70 65 28 20 63 |etSubDes|cType( c|
|00000490| 6f 6e 73 74 20 41 45 53 | 75 62 44 65 73 63 2a 20 |onst AES|ubDesc* |
|000004a0| 29 3b 09 09 09 09 09 09 | 09 2f 2f 20 53 61 6d 65 |);......|.// Same|
|000004b0| 20 61 73 20 2d 3e 73 75 | 62 44 65 73 63 54 79 70 | as ->su|bDescTyp|
|000004c0| 65 0d 70 61 73 63 61 6c | 20 76 6f 69 64 2a 0d 09 |e.pascal| void*..|
|000004d0| 41 45 47 65 74 53 75 62 | 44 65 73 63 44 61 74 61 |AEGetSub|DescData|
|000004e0| 28 20 63 6f 6e 73 74 20 | 41 45 53 75 62 44 65 73 |( const |AESubDes|
|000004f0| 63 2a 2c 20 6c 6f 6e 67 | 20 2a 6c 65 6e 67 74 68 |c*, long| *length|
|00000500| 20 29 3b 09 09 09 09 2f | 2f 20 49 6e 76 61 6c 69 | );..../|/ Invali|
|00000510| 64 20 6f 6e 63 65 20 64 | 61 74 61 48 61 6e 64 6c |d once d|ataHandl|
|00000520| 65 20 6d 6f 76 65 73 0d | 0d 70 61 73 63 61 6c 20 |e moves.|.pascal |
|00000530| 42 6f 6f 6c 65 61 6e 0d | 09 41 45 53 75 62 44 65 |Boolean.|.AESubDe|
|00000540| 73 63 49 73 4c 69 73 74 | 4f 72 52 65 63 6f 72 64 |scIsList|OrRecord|
|00000550| 28 20 63 6f 6e 73 74 20 | 41 45 53 75 62 44 65 73 |( const |AESubDes|
|00000560| 63 2a 20 73 64 20 29 3b | 09 2f 2f 20 49 73 20 69 |c* sd );|.// Is i|
|00000570| 74 20 61 20 6c 69 73 74 | 20 6f 72 20 28 70 6f 73 |t a list| or (pos|
|00000580| 73 69 62 6c 79 20 63 6f | 65 72 63 65 64 29 20 72 |sibly co|erced) r|
|00000590| 65 63 6f 72 64 3f 0d 70 | 61 73 63 61 6c 20 44 65 |ecord?.p|ascal De|
|000005a0| 73 63 54 79 70 65 0d 09 | 41 45 47 65 74 53 75 62 |scType..|AEGetSub|
|000005b0| 44 65 73 63 42 61 73 69 | 63 54 79 70 65 28 20 63 |DescBasi|cType( c|
|000005c0| 6f 6e 73 74 20 41 45 53 | 75 62 44 65 73 63 2a 20 |onst AES|ubDesc* |
|000005d0| 29 3b 09 09 2f 2f 20 52 | 65 74 75 72 6e 73 20 27 |);..// R|eturns '|
|000005e0| 72 65 63 6f 27 20 69 66 | 20 69 74 27 73 20 61 20 |reco' if| it's a |
|000005f0| 63 6f 65 72 63 65 64 20 | 72 65 63 6f 72 64 0d 0d |coerced |record..|
|00000600| 2f 2f 20 54 68 65 20 6c | 69 73 74 2d 6f 72 69 65 |// The l|ist-orie|
|00000610| 6e 74 65 64 20 63 61 6c | 6c 73 20 74 68 61 74 20 |nted cal|ls that |
|00000620| 66 6f 6c 6c 6f 77 20 6d | 61 6b 65 20 73 75 72 65 |follow m|ake sure|
|00000630| 20 74 68 65 20 73 75 62 | 64 65 73 63 72 69 70 74 | the sub|descript|
|00000640| 6f 72 20 69 73 20 61 20 | 76 61 6c 69 64 20 6c 69 |or is a |valid li|
|00000650| 73 74 20 6f 72 20 28 70 | 6f 73 73 69 62 6c 79 0d |st or (p|ossibly.|
|00000660| 2f 2f 20 63 6f 65 72 63 | 65 64 29 20 72 65 63 6f |// coerc|ed) reco|
|00000670| 72 64 2e 20 49 66 20 6e | 6f 74 2c 20 74 68 65 79 |rd. If n|ot, they|
|00000680| 27 6c 6c 20 72 65 74 75 | 72 6e 20 65 72 72 41 45 |'ll retu|rn errAE|
|00000690| 57 72 6f 6e 67 44 61 74 | 61 54 79 70 65 2e 0d 0d |WrongDat|aType...|
|000006a0| 70 61 73 63 61 6c 20 6c | 6f 6e 67 0d 09 41 45 43 |pascal l|ong..AEC|
|000006b0| 6f 75 6e 74 53 75 62 44 | 65 73 63 49 74 65 6d 73 |ountSubD|escItems|
|000006c0| 28 20 63 6f 6e 73 74 20 | 41 45 53 75 62 44 65 73 |( const |AESubDes|
|000006d0| 63 2a 20 29 3b 0d 0d 2f | 2f 20 49 6e 20 74 68 65 |c* );../|/ In the|
|000006e0| 73 65 20 6e 65 78 74 20 | 74 77 6f 20 63 61 6c 6c |se next |two call|
|000006f0| 73 2c 20 69 74 27 73 20 | 6f 6b 61 79 20 69 66 20 |s, it's |okay if |
|00000700| 6e 65 77 53 44 20 3d 3d | 20 73 64 3b 20 73 64 20 |newSD ==| sd; sd |
|00000710| 77 69 6c 6c 20 62 65 20 | 6f 76 65 72 77 72 69 74 |will be |overwrit|
|00000720| 74 65 6e 20 77 69 74 68 | 20 74 68 65 20 6e 65 77 |ten with| the new|
|00000730| 20 73 75 62 44 65 73 63 | 2e 0d 09 0d 70 61 73 63 | subDesc|....pasc|
|00000740| 61 6c 20 4f 53 45 72 72 | 0d 09 41 45 47 65 74 4e |al OSErr|..AEGetN|
|00000750| 74 68 53 75 62 44 65 73 | 63 28 20 63 6f 6e 73 74 |thSubDes|c( const|
|00000760| 20 41 45 53 75 62 44 65 | 73 63 2a 20 73 64 2c 20 | AESubDe|sc* sd, |
|00000770| 6c 6f 6e 67 20 69 6e 64 | 65 78 2c 0d 09 09 09 09 |long ind|ex,.....|
|00000780| 09 20 41 45 4b 65 79 77 | 6f 72 64 2a 20 6b 65 79 |. AEKeyw|ord* key|
|00000790| 49 66 41 6e 79 2c 20 41 | 45 53 75 62 44 65 73 63 |IfAny, A|ESubDesc|
|000007a0| 2a 20 6e 65 77 53 44 20 | 29 2c 0d 09 41 45 47 65 |* newSD |),..AEGe|
|000007b0| 74 4b 65 79 53 75 62 44 | 65 73 63 28 20 63 6f 6e |tKeySubD|esc( con|
|000007c0| 73 74 20 41 45 53 75 62 | 44 65 73 63 2a 20 73 64 |st AESub|Desc* sd|
|000007d0| 2c 20 41 45 4b 65 79 77 | 6f 72 64 2c 09 09 09 09 |, AEKeyw|ord,....|
|000007e0| 2f 2f 20 4c 69 73 74 73 | 20 69 6c 6c 65 67 61 6c |// Lists| illegal|
|000007f0| 20 68 65 72 65 0d 09 09 | 09 09 09 20 41 45 53 75 | here...|... AESu|
|00000800| 62 44 65 73 63 2a 20 6e | 65 77 53 44 20 29 3b 0d |bDesc* n|ewSD );.|
|00000810| 0d 23 65 6e 64 69 66 00 | 00 00 00 00 00 00 00 00 |.#endif.|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000880| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00000890| fc a4 48 78 17 7c 2f 00 | 4e ad 1f 2a 0c 40 00 01 |..Hx.|/.|N..*.@..|
|000008a0| 4f ef 00 2c 66 30 20 2e | fe a6 d0 bc 00 00 15 03 |O..,f0 .|........|
|000008b0| 0c 41 45 53 75 62 44 65 | 73 63 73 2e 68 2b 02 00 |.AESubDe|scs.h+..|
|000008c0| 00 00 54 45 58 54 4b 41 | 48 4c 01 00 ff ff ff ff |..TEXTKA|HL......|
|000008d0| 00 00 54 45 58 54 4b 41 | 48 4c 01 00 ff ff ff ff |..TEXTKA|HL......|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 a5 e6 1c c7 00 00 | 07 97 00 00 01 ac 01 43 |........|.......C|
|00000900| 77 57 20 65 20 66 20 61 | 68 71 86 18 43 95 48 78 |wW e f a|hq..C.Hx|
|00000910| 20 3a 2f 2e fe b8 4e ad | 27 b2 2d 40 20 68 4c 01 | :/...N.|'.-@ hL.|
|00000920| fa f2 68 92 6b 01 01 b2 | 20 63 01 00 ac 13 bc ae |..h.k...| c......|
|00000930| fe aa 64 00 01 00 a4 76 | 1f fc a4 42 10 48 78 0b |..d....v|...B.Hx.|
|00000940| ea 48 6e fc a4 2f 0c 20 | 54 20 50 22 68 00 58 4e |.Hn../. |T P"h.XN|
|00000950| 91 41 ee fb a4 42 10 86 | 01 43 76 57 10 19 fb a4 |.A...B..|.CvW....|
|00000960| 4e ad 11 22 41 ee fa a0 | 42 10 2f 2e fe aa 48 6e |N.."A...|B./...Hn|
|00000970| fa a0 4e ad 10 fa 70 00 | 2f 00 2f 00 48 6e fa a0 |..N...p.|/./.Hn..|
|00000980| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 61 63 6f |...H..Mo|naco.aco|
|00000990| 6f 6c 62 6f 78 20 75 6c | 74 72 61 63 6f 6f 6c 62 |olbox ul|tracoolb|
|000009a0| 6f 78 32 0d 0d 5a 00 06 | 00 04 00 3c 00 24 01 dd |ox2..Z..|...<.$..|
|000009b0| 02 3d 00 3c 00 24 01 dd | 02 3d a6 de 5d b9 00 00 |.=.<.$..|.=..]...|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 00 1e |........|........|
|000009d0| 00 3c 00 24 01 dd 02 3d | 00 3c 00 24 01 dd 02 3d |.<.$...=|.<.$...=|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 01 12 |.....n..|.n...>..|
|00000a00| a0 58 1a 72 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |.X.r....|.>..MPSR|
|00000a10| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00000a20| 03 f0 ff ff 00 00 00 4c | 01 14 fb 00 00 00 00 00 |.......L|........|
|00000a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+